package cn.com.chengmandian.xh.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 换电记录表
 * </p>
 *
 * @author AutoGenerator
 */
@Getter
@Setter
@TableName("xh_member_battery_log")
@ApiModel(value = "XhMemberBatteryLog对象", description = "换电记录表")
public class XhMemberBatteryLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("合作商ID")
    private Integer merchantsId;

    @ApiModelProperty("订单编号")
    private String orderNo;

    @ApiModelProperty("会员ID")
    private Integer memberId;

    @ApiModelProperty("关联租赁电池ID")
    private Integer rentBatteryId;

    @ApiModelProperty("会员套餐id")
    private Integer memberComboId;

    @ApiModelProperty("套餐过期时间")
    private Date expireTime;

    @ApiModelProperty("套餐剩余次数")
    private Integer lastTimes;

    @ApiModelProperty("电池ID")
    private Integer batteryId;

    @ApiModelProperty("电池规格id")
    private Integer batteryInfoId;

    @ApiModelProperty("类型：1.取电2.还电")
    private Integer orderType;

    @ApiModelProperty("来源：1.门店2.机柜 3.仓库")
    private Integer source;

    @ApiModelProperty("租赁门店或机柜id")
    private Integer shopCabinetId;

    @ApiModelProperty("通道id")
    private Integer aisleId;

    @ApiModelProperty("归还源：1.门店2.机柜3.仓库")
    private Integer returnSource;

    @ApiModelProperty("归还门店或机柜id")
    private Integer returnShopCabinetId;

    @ApiModelProperty("归还通道id")
    private Integer returnAisleId;

    @ApiModelProperty("归还时电量")
    private Integer returnEnergy;

    @ApiModelProperty("订单状态：0.使用中(默认)1.已归还")
    private Integer orderStatus;

    @ApiModelProperty("可用电量")
    private String energy;

    @ApiModelProperty("已用电量")
    private String usedEnergy;

    @ApiModelProperty("剩余电量")
    private String lastEnergy;

    @ApiModelProperty("可用公里数")
    private BigDecimal mileage;

    @ApiModelProperty("已用公里数")
    private BigDecimal usedMileage;

    @ApiModelProperty("剩余公里数")
    private BigDecimal lastMileage;

    @ApiModelProperty("可用时长(单位分钟)")
    private BigDecimal duration;

    @ApiModelProperty("已用时长")
    private BigDecimal usedDuration;

    @ApiModelProperty("剩余时长(单位分钟)")
    private BigDecimal lastDuration;

    @ApiModelProperty("碳减排量(克)")
    private BigDecimal cers;

    @ApiModelProperty("骑行公里数")
    private BigDecimal ridingMileage;

    @ApiModelProperty("归还时间")
    private Date returnTime;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date modifyTime;

}
